const express = require('express');
const router = express();
const multer = require('multer');

const upload = multer({dest: 'uploads/'})

router.route('/fileanalyse')
    .post(upload.single('upfile'), (req, res) => {
        res.json({
            "name": req.file.originalname,
            "type": req.file.mimetype,
            "size": req.file.size
        });
    })

module.exports = router;
